$(function () {
    $('#save_123').click(function () {
        event.preventDefault();
        var real_name = $('#really_name').val();
        var id_number = $('#id_card').val();
        var email = $('#email').val();
        var addr = $('#addr').val();
        params = {
            'real_name': real_name,
            'id_number': id_number,
            'email': email,
            'addr': addr,
        };
        $.ajax({
            url: '/member/',
            type: 'post',
            data: JSON.stringify(params),
            contentType: 'application/json',
            dataType: 'json',
            async: false,
            success: function (data) {
                if (data.code == '0') {
                    alert('成功');
                    window.location.href = '/personal/'
                } else {
                    alert('失败')
                }

            }
        })

    })
});